package com.salesmanager.web.entity.catalog.category;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Liutong on 7/30/15.
 */
public class CategorySimpleTreeNode {
    private String n;
    private String v;

    private List<CategorySimpleTreeNode> s;

    public List<CategorySimpleTreeNode> getS() {
        return s;
    }

    public void setS(List<CategorySimpleTreeNode> child) {
        this.s = child;
    }

    public void addChild(CategorySimpleTreeNode node){
        if (s == null){
            s = new ArrayList<CategorySimpleTreeNode>();
        }
        s.add(node);
    }

    public String getN() {
        return n;
    }

    public void setN(String n) {
        this.n = n;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }
}
